package com.neu.af.dataFilter.service;

//import com.github.pagehelper.PageInfo;
import com.github.pagehelper.PageInfo;
import com.neu.af.dataFilter.entity.Tag;

import java.util.List;
import java.util.Map;

public interface TagService {

    int insert(Tag tag);

    int update(Tag tag);

    int delete(Tag tag);

    Tag getById(String id);

    List<Tag> getAll();

    List<Tag> getAllByFilter(Map<String, Object> map);

    List<String> getAllName(Map<String, Object> map);

    //pagenum   pagenow  ,pagesize
    PageInfo<Tag> getAllByFilter(Integer pageNum, Integer pageSize);

    PageInfo<Tag> getAllByFilter(Integer pageNum, Integer pageSize, Map<String, Object> map);
}
